package com.xinqi.modules.exam.student.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.base.dto.QuestionBaseDTO;
import com.xinqi.common.base.enums.QuestionTypeEnum;
import com.xinqi.common.mybatis.annotation.JsonTypeHandle;
import com.xinqi.common.mybatis.data.entity.UpdateTimeEntity;
import com.xinqi.modules.exam.student.enums.PaperErrorSetTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * 课程测评学生错题集实体层
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Setter
@Getter
@TableName("co_course_exam_paper_error_set")
public class CourseExamPaperErrorSetEntity extends UpdateTimeEntity {
    /**
     * 班级ID
     */
    @TableField(value = "class_id")
    private Long classId;
    /**
     * 测评ID
     */
    @TableField(value = "exam_paper_id")
    private Long examPaperId;
    /**
     * 学生ID
     */
    @TableField(value = "student_id")
    private Long studentId;
    /**
     * 题目id
     */
    @TableField(value = "question_id")
    private Long questionId;
    /**
     * 题集类型，1-错题集；2-星标题
     */
    @TableField(value = "type")
    private PaperErrorSetTypeEnum type;
    /**
     * 题目类型
     */
    @TableField(value = "question_type")
    private QuestionTypeEnum questionType;
    /**
     * 题目
     */
    @JsonTypeHandle
    @TableField(value = "question")
    private QuestionBaseDTO question;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}
